[//lasso

    define_atbegin(
        {        
            local(
                'go' = true,
                'rf' = @response_filepath
            );
            
        
           select(true);
				case(#rf->endswith('.htm'));
					#go = false;
				case(#rf->endsWith('.html'));
					#go = false;
				case(#rf->endswith('.lasso'));
					#go = false;
				case(#rf->endswith('.lassoapp'));
					#go = false;
				case(#rf->beginswith('/private_admin/'));
					#go = false;
				case(#rf->beginswith('/docs/'));
					#go = false;
				case(#rf->beginswith('/w3c/'));
					#go = false;
				case;
					#go = true;
			/select;
		
           		if(#go);
				$__HTML_REPLY__ = @include('/index.lasso');
				abort;
				
				// workaround for behavior change in Apache 2.x.
				else(#rf->endswith('/'));
					redirect_url(#rf + '/index.lasso');
				
			/if;
		// Lasso 8.5.2 global fix
		/*
		define_atend: 
        { 
            ($__http_header__ >> 'html') && 
            ($__html_reply__ >> '&apos;') ? 
            $__html_reply__->(replace: '&apos;', '&#39;');
        }
        
        */
        }
    );
	
	log_critical:'at begin loaded';

]
